package com.conero.yangsu.mapper;

import com.conero.yangsu.entity.FieldEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface FieldMapper extends CrudRepository<FieldEntity, Long> {
    // 根据装好查询ID
    List<FieldEntity> findAllByMid(Long mid);
    List<FieldEntity> findByMid(Long mid);

    // 分页查询
    Page<FieldEntity> findAll(Pageable pageable);
}
